package cn.tedu._05mvcboot02.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import jdk.internal.org.objectweb.asm.tree.analysis.Value;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

/**
 * 添加用户功能的DTO类
 */
@Data
public class AddUserDTO {
    //根据API文档:用户名、密码、昵称
    @Size(min = 6, max = 12, message = "用户名必须在6-12位之间")
    @NotBlank(message = "用户名不能为空白串")
    @ApiModelProperty(value = "用户名称",required = true)
    private String username;
    @NotNull(message = "不能为空")
    @ApiModelProperty(value="用户密码",required = true)
    private String password;
    @ApiModelProperty(value="用户昵称",required = true)
    private String nickname;


}
